package rladidxo.basic;

public class J07_CalendarV1 {
public static void main(String[] args) {
	final String TITLE= "			January 2005";
	final String HDRLINE= "---------------------------------------------------------------";
	final String HDRDAYS= "Sun	Mon	Tue	Wed	Thu	Fri	Sat	";
	
	System.out.println(TITLE);
	System.out.println(HDRLINE);
	System.out.println(HDRDAYS);
	
	
	
	int day = 1;												//달력 출력 v2
	/*for(int n =1; n<=6;n++){
		for(int m=1; m<=7;m++){
		if(day<=37&&day>=7){	
		System.out.print((day-6)+"	");}
		else{System.out.print("	");}
		day++;
		}System.out.println();
	}*/
	/*day=1; 													//달력 출력 v1
	for(int i =1; i<=31; ++i){
		if (i%7==0)
			{System.out.println(i+"");}
		else
			{System.out.print(i+"\t");}
	}*/
	/*day=1;														//달력 출력v2
	int skipday = 6; 
	for(int i =1; i<=31; ++i){
		for(;skipday>=1;skipday--){System.out.print("\t");}
		if (i%7==1)
		{System.out.println(i+"");}
		else
		{System.out.print(i+"\t");}
	}*/
	
	/*day=1;														//달력 출력v2
	int skipday = 6; 
	for(int i =1; i<=37; ++i ,skipday--){
		if(skipday>=1){
			System.out.print("\t");
		}else{
			if (i%7==0)
			{System.out.println((i-6)+"");}
			else
			{System.out.print((i-6)+"\t");}}
		
	}*/
	day=1;														//달력 출력v2
	int skipday = 6; 
	for(int i =1; i<=37; ++i ,skipday--){
		if(skipday>=1){
			System.out.print("\t");
		}
		else if (i%7==0)
			{System.out.println((i-6)+"");}
			else
			{System.out.print((i-6)+"\t");}}
		
	
}
}
